#pragma once

class rttJtagGPIO
{
public:
    rttJtagGPIO();

public:
    bool open(const char *dev);
    void close();

public:
    int tdo_read();
    int ttt_write(int tck, int tms, int tdi);
    void reset(int trst, int srst);
    void blink(int on);

private:
    struct
    {
        int trs; //TRST_N;
        int tdi;
        int tms;
        int tck;
        int tdo;
        int srs; //SRST_N;

        int led; //blink LED
    } pins;
};
